#slot attack
execute as @e[tag=smithingTable,type=marker] at @s if data entity @n[tag=smithingTable.itemSlotInteraction,distance=..3,type=interaction] attack run function vs:system/game_ctrol/smithing_table/slot/attack

#slot interaction
execute as @e[tag=smithingTable,type=marker] at @s if data entity @n[tag=smithingTable.itemSlotInteraction,distance=..3,type=interaction] interaction run function vs:system/game_ctrol/smithing_table/slot/interaction

#forge interaction
execute as @e[tag=smithingTable,type=marker] at @s if data entity @n[tag=smithingTable.forgeButtonInteraction,distance=..3,type=interaction] interaction run function vs:system/game_ctrol/smithing_table/forge/interaction

#Tips
execute as @e[tag=smithingTable,type=marker] at @s run function vs:system/game_ctrol/smithing_table/tips/tips